package com.asohofrucol.model;

import java.io.Serializable;
import javax.persistence.*;

import java.util.List;


/**
 * The persistent class for the form database table.
 * 
 */
@Entity
public class Form implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private Long id;

	private String description;

	private String name;

	//bi-directional many-to-one association to FormAnswer
	@OneToMany(mappedBy="form")
	private List<FormAnswer> formAnswers;

	//bi-directional many-to-one association to FormField
	@OneToMany(mappedBy="form")
	private List<FormField> formFields;

	public Form() {
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<FormAnswer> getFormAnswers() {
		return this.formAnswers;
	}

	public void setFormAnswers(List<FormAnswer> formAnswers) {
		this.formAnswers = formAnswers;
	}

	public List<FormField> getFormFields() {
		return this.formFields;
	}

	public void setFormFields(List<FormField> formFields) {
		this.formFields = formFields;
	}

}